package com.kingschan.jeasytag.core.parse.properties.impl;

import java.lang.reflect.Field;

import org.json.JSONObject;

import com.kingschan.jeasytag.core.parse.properties.PropertiesParse;

public class JsonFieldParseImpl implements PropertiesParse {

	@Override
	public String parse(Field f, Object obj) throws Exception {
		StringBuffer sb = new StringBuffer()
		.append(f.getName()).append(":").append(new JSONObject(obj.toString()).toString().replace("\"", "\'"));
		return sb.toString();
	}

}
